import request from '@/utils/request.js'
// 获取品牌列表说要数据  /lejuAdmin/brand/findAllBrand
function findAllBrand() {
  return request({
    url: '/lejuAdmin/brand/findAllBrand'
  })
}
// 品牌分页请求的接口  /lejuAdmin/brand/findBrandByPage
function findBrandByPage(start, limit) {
  return request({
    url: `/lejuAdmin/brand/findBrandByPage/${start}/${limit}`
  })
}

// 删除  /lejuAdmin/brand/delBrand
function delBrand(id) {
  return request({
    url: `/lejuAdmin/brand/delBrand/${id}`,
    method: 'DELETE'
  })
}
// 是否展示状态  /lejuAdmin/brand/switchShowStatus
function switchShowStatus(data) {
  return request({
    url: '/lejuAdmin/brand/switchShowStatus',
    method: 'post',
    data
  })
}

// 点击新增按钮  /lejuAdmin/brand/addBrand
function addBrand(data) {
  return request({
    url: '/lejuAdmin/brand/addBrand',
    method: 'post',
    data
  })
}

export {
  findAllBrand,
  findBrandByPage,
  delBrand,
  switchShowStatus,
  addBrand

}
